package com.polidea.rxohosble2.exceptions;

import com.polidea.rxohosble2.RxBleConnection;
import ohos.bluetooth.ble.BlePeripheralDevice;

/**
 * An exception emitted from {@link RxBleConnection} functions when the underlying {@link BlePeripheralDevice}
 * returns `false` from {@link BlePeripheralDevice#readRemoteRssi()} or other functions associated with device interaction.
 */
public class BleGattCannotStartException extends BleGattException {

    @Deprecated
    public BleGattCannotStartException(BleGattOperationType bleGattOperationType) {
        super(null, bleGattOperationType);
    }

    public BleGattCannotStartException(BlePeripheralDevice gatt, BleGattOperationType bleGattOperationType) {
        super(gatt, bleGattOperationType);
    }
}
